package com.dd.cloud.user.mapper.doctor;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dd.cloud.user.entity.doctor.DoctorWithdrawRecord;
import com.dd.cloud.user.req.doctor.DoctorWithdrawRecordPageReq;
import com.dd.cloud.user.req.doctor.DoctorWithdrawRecordPageSystemReq;
import com.dd.cloud.user.res.doctor.DoctorWithdrawRecordDetailRes;
import com.dd.cloud.user.res.doctor.DoctorWithdrawRecordPageRes;
import com.dd.cloud.user.res.doctor.DoctorWithdrawRecordPageSystemRes;
import org.apache.ibatis.annotations.Param;

/**
 * @author Lx
 * @version 1.0
 */
public interface DoctorWithdrawRecordMapper extends BaseMapper<DoctorWithdrawRecord> {
    /**
     * 医生查询提现记录
     *
     * @param iPage
     * @param req
     * @return
     */
    IPage<DoctorWithdrawRecordPageRes> queryDoctorWithdrawRecordPage(IPage<?> iPage, @Param("req") DoctorWithdrawRecordPageReq req);

    /**
     * 查询提现记录详情
     *
     * @param withdrawNo
     * @return
     */
    DoctorWithdrawRecordDetailRes queryDoctorWithdrawRecordDetail(@Param("withdrawNo") String withdrawNo);

    /**
     * 查询所有医生提现记录 运营后台
     *
     * @param iPage
     * @param req
     * @return
     */
    IPage<DoctorWithdrawRecordPageSystemRes> queryDoctorWithdrawRecordPageSystem(IPage<?> iPage, @Param("req") DoctorWithdrawRecordPageSystemReq req);
}
